<?php
$dbConf = require('db.php');
$qyConf = array();
if (file_exists(dirname(__FILE__).'/qy.php'))
	$qyConf = require_once('qy.php');
$setconf =  array(
		'TMPL_PARSE_STRING'  =>array(  //模版解析字符串
			'__PUBLIC__' => '/Common',
			'__STATIC__'     => '/static',
			),

		'UPLOAD' =>  array(
						'DIR'=> 'uploads/', //上传文件目录
						'DIR_RULE' => 'Y/md/', //上传文件命名规则
						'FILE_PREFIX' =>'',//上传文件命名规则 uniqid
					),
		'EXCEL' => array(
						'DIR' => 'uploads/excel/', //
						'DIR_RULE' => 'Y/md/', //上传文件命名规则
					),

		'DEFAULT_LANG' => 'zh-cn',
		'SESSION_AUTO_START'    => false, //session自动启动
		'SITE_HASH_KEY' => '&F^JFHFHhdde1127_fj', //加密字符串

		'URL_MODEL' => 3, //URL模式
		'URL_HTML_SUFFIX'  => '',
		'URL_CASE_INSENSITIVE'  => true,
		'URL_ROUTER_ON'   => true,
		'URL_ROUTE_RULES'=>array(
    		'ifServiceReady' => array('Admin/Api/ifServiceReady'),
			'api/:api_action/:api_method' => array('Admin/Api/agent')
    		),
		);

return array_merge($setconf, $dbConf ,$qyConf);